package designs.models.visitor;

import java.util.jar.Attributes.Name;

public class GraduateStudent extends Student {
	double math,english,physics;
	String name;
	
	public GraduateStudent(String name,double math, double english, double physics) {
		super();
		this.math = math;
		this.english = english;
		this.physics = physics;
		this.name = name;
	}

	@Override
	public void accept(Visitor v) {
		v.visit(this);

	}

	public double getMath() {
		return math;
	}

	public double getEnglish() {
		return english;
	}

	public double getPhysics() {
		return physics;
	}

	public String getName() {
		return name;
	}

}
